<?php

namespace App\Modules\Apicrzs\Entities;

use App\Models\Model;
use App\Modules\Admin\Entities\Member\WaterCardModel;

class UserWaterCardModel extends Model
{

    protected $table='user_water_card';
    protected $primaryKey='user_card_id';


    public function water_card()
    {
        return $this->belongsTo(WaterCardModel::class,'card_id');
    }
    public function recharges()
    {
        return $this->hasMany(WaterCardRecharge::class);
    }

    public function usages()
    {
        return $this->hasMany(WaterCardUsage::class);
    }
}
